import request from '@/utils/request'

// 查询列表信息
export function getDivinationList(query) {
  return request({
    url: '/yijing/guai/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function divinationDetail(guaId) {
  return request({
    url: '/yijing/guai/' + guaId,
    method: 'get'
  })
}

// 新增
export function addDivination(data) {
  return request({
    url: '/yijing/guai',
    method: 'post',
    data: data
  })
}

// 修改
export function updateDivination(data) {
  return request({
    url: '/yijing/guai',
    method: 'put',
    data: data
  })
}

// 爻-----------

// 新增
export function getYaoList(query) {
  return request({
    url: '/yijing/guai/yao/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function yaoDetail(guaId) {
  return request({
    url: '/yijing/guai/yao/' + guaId,
    method: 'get'
  })
}

// 新增
export function addYao(data) {
  return request({
    url: '/yijing/guai/yao',
    method: 'post',
    data: data
  })
}

// 修改
export function updateYao(data) {
  return request({
    url: '/yijing/guai/yao',
    method: 'put',
    data: data
  })
}

// 删除
export function delYao(id) {
  return request({
    url: '/yijing/guai/yao/' + id,
    method: 'delete'
  })
}